import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/interact_user_share_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class InteractUserShareEntity {
	int? state;
	String? msg;
	@JSONField(name: "income_state")
	bool? incomeState;
	@JSONField(name: "income_msg")
	String? incomeMsg;

	InteractUserShareEntity();

	factory InteractUserShareEntity.fromJson(Map<String, dynamic> json) => $InteractUserShareEntityFromJson(json);

	Map<String, dynamic> toJson() => $InteractUserShareEntityToJson(this);

	InteractUserShareEntity copyWith({int? state, String? msg, bool? incomeState, String? incomeMsg}) {
		return InteractUserShareEntity()
			..state= state ?? this.state
			..msg= msg ?? this.msg
			..incomeState= incomeState ?? this.incomeState
			..incomeMsg= incomeMsg ?? this.incomeMsg;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}